package com.rs.admin.sys.pms.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 权限资源表
 * </p>
 *
 * @author hedonglin
 * @since 2017-12-20
 */
@TableName("pms_permission")
public class Permission extends Model<Permission> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 名称
     */
	private String name;
    /**
     * 标题
     */
	private String title;
    /**
     * 图标
     */
	private String icon;
    /**
     * 样式
     */
	private String css;
    /**
     * 地址
     */
	private String url;
    /**
     * 标识码
     */
	private String identify;
    /**
     * 0 菜单  1按钮  2其他  
     */
	@TableField("resource_type")
	private Integer resourceType;
    /**
     * 0 模块  1控制器  2函数
     */
	@TableField("resource_kind")
	private Integer resourceKind;
    /**
     * 父模块
     */
	private Long pid;
    /**
     * 状态
     */
	private Integer status;
    /**
     * 排序
     */
	private Integer sorting;
    /**
     * 创建时间
            
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 修改时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 说明
     */
	private String remark;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getCss() {
		return css;
	}

	public void setCss(String css) {
		this.css = css;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIdentify() {
		return identify;
	}

	public void setIdentify(String identify) {
		this.identify = identify;
	}

	public Integer getResourceType() {
		return resourceType;
	}

	public void setResourceType(Integer resourceType) {
		this.resourceType = resourceType;
	}

	public Integer getResourceKind() {
		return resourceKind;
	}

	public void setResourceKind(Integer resourceKind) {
		this.resourceKind = resourceKind;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSorting() {
		return sorting;
	}

	public void setSorting(Integer sorting) {
		this.sorting = sorting;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Permission{" +
			", id=" + id +
			", name=" + name +
			", title=" + title +
			", icon=" + icon +
			", css=" + css +
			", url=" + url +
			", identify=" + identify +
			", resourceType=" + resourceType +
			", resourceKind=" + resourceKind +
			", pid=" + pid +
			", status=" + status +
			", sorting=" + sorting +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", remark=" + remark +
			"}";
	}
}
